<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>流动数据网格 - jQuery EasyUI 演示</title>
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
	<link rel="stylesheet" type="text/css" href="../demo.css">
	<script type="text/javascript" src="../../jquery.min.js"></script>
	<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
</head>
<body>
	<h2 title="Fluid DataGrid">流动数据网格</h2>
	<p title="This example shows how to assign percentage width to a column in DataGrid.">　　本例展示如何分配数据网格的宽度为其父容器的百分比值。</p>
	<div style="margin:20px 0;"></div>
	
	<table id="dg" class="easyui-datagrid" title="<c>流动<wn>（各列宽％：10/13/27/8/8/29/5）</wn></c>" style="width:700px;height:300px"
			data-options="singleSelect:true,collapsible:true,url:'datagrid_data1.json',method:'get'">
		<thead>
			<tr>
				<th data-options="field:'itemid',resizable:false,halign:'center'" width="10%">物料编码</th>
				<th data-options="field:'productid',resizable:false,halign:'right'" width="13%">品</th>
				<th data-options="field:'productname',resizable:false" width="27%">名</th>
				<th data-options="field:'listprice',align:'right',resizable:false,halign:'center'" width="8%">清单<br/>价格</th>
				<th data-options="field:'unitcost',align:'right',resizable:false,halign:'center'" width="8%">成本<br/>单价</th>
				<th data-options="field:'attr1',resizable:false,halign:'center'" width="29%">物料属性</th>
				<th data-options="field:'status',align:'center',resizable:false,halign:'center'" width="5%">状态</th>
			</tr>
		</thead>
	</table>

</body>
</html>